<?php
/**
 * tpAdmin [a web admin based ThinkPHP5]
 *
 * @author yuan1994 <tianpian0805@gmail.com>
 * @link http://tpadmin.yuan1994.com/
 * @copyright 2016 yuan1994 all rights reserved.
 * @license http://www.apache.org/licenses/LICENSE-2.0
 */

//------------------------
// 节点模型
//-------------------------

namespace app\common\model;

use think\Model;

class AppDownloads extends Model
{

    protected $autoWriteTimestamp = 'int';

    public function getTopApp(){
        return $this->where("status", 1)
            ->where('isdelete',0)
            ->order('version','desc')
            ->find();
    }
}